package com.sxp.bean;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @author 宋晓盼
 * @since 2019/6/5 10:06
 */
public class User {
    private Integer id;
    private Timestamp createTime;
    private Timestamp updateTime;
    private String username;
    private  String password;
    private Boolean admin;

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public User(String username, String password, Boolean admin) {
        this.username = username;
        this.password = password;
        this.admin = admin;
    }

    public User(Timestamp createTime, Timestamp updateTime, String username, String password, Boolean admin) {
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.username = username;
        this.password = password;
        this.admin = admin;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Boolean getAdmin() {
        return admin;
    }

    public void setAdmin(Boolean admin) {
        this.admin = admin;
    }
}
